package de.zefania.api.impl;

public class JfaniaException extends Exception {
	private static final long serialVersionUID = 8882439000444874459L;
	private Throwable t;
	private String message;
	
	public JfaniaException(final Throwable t) {
		this.t = t;
		this.message = t.getMessage();
	}
	public JfaniaException(final String message) {
		this.message = message;
	}
	
	public final String getMessage() {
		return this.message;
	}
	
	public final Class<? extends Throwable> getExceptionClass() {
		return t.getClass();
	}
	
	public final StackTraceElement[] getStackTrace() {
		return t.getStackTrace();
	}
}
